package labox.innovation.gameserver.network.loginserverpackets;

public class LoginServerFail extends LoginServerBasePacket {

	private static final String[] REASONS = { "None", "Reason: ip banned", "Reason: ip reserved", "Reason: wrong hexid", "Reason: id reserved", "Reason: no free ID", "Not authed", "Reason: already logged in" };

	private int _reason;

	/**
	 * @param decrypt
	 */
	public LoginServerFail(byte[] decrypt) {
		super(decrypt);
		_reason = readUnByte();
	}

	public String getReasonString() {
		return REASONS[_reason];
	}

	public int getReason() {
		return _reason;
	}

}